package com.yunc.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.shop.entity.ShopRandomCode;
import com.yunc.modules.shop.mapper.ShopRandomCodeMapper;
import com.yunc.modules.shop.service.IShopRandomCodeService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 统一订单号
 *
 * @author congcong tao
 * @create 2019/11/8 11:47
 */
@Service("shopRandomCodeService")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ShopRandomCodeServiceImpl extends ServiceImpl<ShopRandomCodeMapper, ShopRandomCode> implements IShopRandomCodeService {

    private final ShopRandomCodeMapper shopRandomCodeMapper;

    @Override
    public ShopRandomCode getByLock(String id) {
        return shopRandomCodeMapper.getByLock(id);
    }
}
